package org.totoro.patterns.behavior.strategy;

/**
 * Created by renkai on 2017/3/24.
 */
public class Plus extends AbstractCalculate implements Calculate {
    @Override
    public int caculate(String exp) {
        int[] split = split(exp, "\\+");

        return split[0] + split[1];
    }
}
